/*
 * @Author: shengduiliang 1107722390@qq.com
 * @Date: 2024-05-04 13:08:04
 * @LastEditors: shengduiliang 1107722390@qq.com
 * @LastEditTime: 2024-05-04 22:21:34
 * @FilePath: /treasure/src/store/index.ts
 * @Description: 这是默认设置,请设置`customMade`, 打开koroFileHeader查看配置 进行设置: https://github.com/OBKoro1/koro1FileHeader/wiki/%E9%85%8D%E7%BD%AE
 */
import { configureStore } from '@reduxjs/toolkit'
import userReducer from './userSlice'
import treasurySlice from './treasurySlice'

export const store = configureStore({
  reducer: {
    user: userReducer,
    treasury: treasurySlice
  }
})

export type RootState = ReturnType<typeof store.getState>
export type AppDispatch = typeof store.dispatch